package com.duolaibei.business.view.goods.mode;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

import java.io.Serializable;

@Entity
public class GoodsBean implements Serializable {

    private static final long serialVersionUID = 7283022142963509807L;
    @Id(autoincrement = true)
    private Long id;

    //名称
    public String name = "";
    //图片路径
    private String picture = "";
    //数量
    public String num = "";
    //分类
    private String type;
    //单位
    private String unit;
    //价格
    private String price;
    //备注
    private String remark;
    //是否在售
    private boolean isSale;
    //规格


    @Generated(hash = 1217732164)
    public GoodsBean(Long id, String name, String picture, String num, String type,
            String unit, String price, String remark, boolean isSale) {
        this.id = id;
        this.name = name;
        this.picture = picture;
        this.num = num;
        this.type = type;
        this.unit = unit;
        this.price = price;
        this.remark = remark;
        this.isSale = isSale;
    }

    @Generated(hash = 1806305570)
    public GoodsBean() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNum() {
        return this.num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "GoodsBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", num='" + num + '\'' +
                '}';
    }

    public String getPicture() {
        return this.picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUnit() {
        return this.unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getPrice() {
        return this.price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public boolean getIsSale() {
        return this.isSale;
    }

    public void setIsSale(boolean isSale) {
        this.isSale = isSale;
    }
}
